const modules = import.meta.glob('./*.svg', { eager: true })
const pngs = import.meta.glob('./*.png', { eager: true })
const icons: Record<string, any> = {}
Object.keys(modules).forEach((k) => {
  const key = k.replace('./', '').replace('.svg', '')
  icons[key] = (modules as any)[k].default
})

Object.keys(pngs).forEach((k) => {
  const key = k.replace('./', '').replace('.png', '')
  icons[key] = (pngs as any)[k].default
})
export default icons
